def f1(m,*a):
    m=m+2
    for i in a:
        m=m*i
    return m

def f2(m,n=2):
    e=1
    for i in range(n):
        e=e*m
    return e


y1=f1(2)
print(y1)

y2=f1(2,3,4)
print(y2)

y3=f2(4,2)
print(y3)

y4=f2(4,3)
print(y4)

y5=f2(4,4)
print(y5)
